package com.shxc.smarttrade.old.bean;

import java.util.List;

/**
 * Created by jcdev1 on 2017/6/8.
 */

public class AccountInfomation extends ErrorStatus {

    /**
     * data : {"mt4Id":"76****13","equity":2027.55,"traderOrder":[{"symbolCn":"欧元澳元","symbolEn":"EURAUD50","cmd":0,"volume":0.01,"openPrice":1.49574,"closePrice":1.49379,"market":1.49387,"lever":50,"profit":-1.47,"ticket":637907,"contractSize":100000,"profitChange":true,"profitUSDPrex":false,"bid":1.49379,"ask":1.49407,"occupyAsset":20,"marginRate":1,"margin":20,"tp":0,"sl":0,"openTime":"2017-06-07 09:16:43","swaps":-0.23,"commission":0,"stopsLevel":100,"multiply":100000,"profitCurrency":"AUDUSD","profitRate":1.33991},{"symbolCn":"欧元澳元","symbolEn":"EURAUD50","cmd":0,"volume":0.05,"openPrice":1.48473,"closePrice":1.49379,"market":1.49387,"lever":50,"profit":34.12,"ticket":637997,"contractSize":100000,"profitChange":true,"profitUSDPrex":false,"bid":1.49379,"ask":1.49407,"occupyAsset":100,"marginRate":1,"margin":100,"tp":0,"sl":0,"openTime":"2017-06-07 14:40:07","swaps":-1.17,"commission":0,"stopsLevel":100,"multiply":100000,"profitCurrency":"AUDUSD","profitRate":1.33991},{"symbolCn":"欧元美元","symbolEn":"EURUSD","cmd":0,"volume":0.01,"openPrice":1.12671,"closePrice":1.12514,"market":1.12522,"lever":100,"profit":-1.57,"ticket":637899,"contractSize":100000,"profitChange":false,"profitUSDPrex":false,"bid":1.12514,"ask":1.12534,"occupyAsset":10,"marginRate":1,"margin":10,"tp":0,"sl":0,"openTime":"2017-06-07 08:24:46","swaps":-0.06,"commission":0,"stopsLevel":50,"multiply":100000,"profitCurrency":"USD","profitRate":1}]}
     */

    private DataBean data;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * mt4Id : 76****13
         * equity : 2027.55
         * traderOrder : [{"symbolCn":"欧元澳元","symbolEn":"EURAUD50","cmd":0,"volume":0.01,"openPrice":1.49574,"closePrice":1.49379,"market":1.49387,"lever":50,"profit":-1.47,"ticket":637907,"contractSize":100000,"profitChange":true,"profitUSDPrex":false,"bid":1.49379,"ask":1.49407,"occupyAsset":20,"marginRate":1,"margin":20,"tp":0,"sl":0,"openTime":"2017-06-07 09:16:43","swaps":-0.23,"commission":0,"stopsLevel":100,"multiply":100000,"profitCurrency":"AUDUSD","profitRate":1.33991},{"symbolCn":"欧元澳元","symbolEn":"EURAUD50","cmd":0,"volume":0.05,"openPrice":1.48473,"closePrice":1.49379,"market":1.49387,"lever":50,"profit":34.12,"ticket":637997,"contractSize":100000,"profitChange":true,"profitUSDPrex":false,"bid":1.49379,"ask":1.49407,"occupyAsset":100,"marginRate":1,"margin":100,"tp":0,"sl":0,"openTime":"2017-06-07 14:40:07","swaps":-1.17,"commission":0,"stopsLevel":100,"multiply":100000,"profitCurrency":"AUDUSD","profitRate":1.33991},{"symbolCn":"欧元美元","symbolEn":"EURUSD","cmd":0,"volume":0.01,"openPrice":1.12671,"closePrice":1.12514,"market":1.12522,"lever":100,"profit":-1.57,"ticket":637899,"contractSize":100000,"profitChange":false,"profitUSDPrex":false,"bid":1.12514,"ask":1.12534,"occupyAsset":10,"marginRate":1,"margin":10,"tp":0,"sl":0,"openTime":"2017-06-07 08:24:46","swaps":-0.06,"commission":0,"stopsLevel":50,"multiply":100000,"profitCurrency":"USD","profitRate":1}]
         */

        private String mt4Id;
        private double equity;
        private List<TraderOrderBean> traderOrder;

        public String getMt4Id() {
            return mt4Id;
        }

        public void setMt4Id(String mt4Id) {
            this.mt4Id = mt4Id;
        }

        public double getEquity() {
            return equity;
        }

        public void setEquity(double equity) {
            this.equity = equity;
        }

        public List<TraderOrderBean> getTraderOrder() {
            return traderOrder;
        }

        public void setTraderOrder(List<TraderOrderBean> traderOrder) {
            this.traderOrder = traderOrder;
        }

        public static class TraderOrderBean {
            /**
             * symbolCn : 欧元澳元
             * symbolEn : EURAUD50
             * cmd : 0
             * volume : 0.01
             * openPrice : 1.49574
             * closePrice : 1.49379
             * market : 1.49387
             * lever : 50
             * profit : -1.47
             * ticket : 637907
             * contractSize : 100000
             * profitChange : true
             * profitUSDPrex : false
             * bid : 1.49379
             * ask : 1.49407
             * occupyAsset : 20
             * marginRate : 1
             * margin : 20
             * tp : 0
             * sl : 0
             * openTime : 2017-06-07 09:16:43
             * swaps : -0.23
             * commission : 0
             * stopsLevel : 100
             * multiply : 100000
             * profitCurrency : AUDUSD
             * profitRate : 1.33991
             */

            private String symbolCn;
            private String symbolEn;
            private int cmd;
            private double volume;
            private double openPrice;
            private double closePrice;
            private double market;
            private int lever;
            private double profit;
            private String ticket;
            private int contractSize;
            private boolean profitChange;
            private boolean profitUSDPrex;
            private double bid;
            private double ask;
            private double occupyAsset;
            private double marginRate;
            private double margin;
            private double tp;
            private double sl;
            private String openTime;
            private double swaps;
            private double commission;
            private int stopsLevel;
            private int multiply;
            private String profitCurrency;
            private double profitRate;

            public String getSymbolCn() {
                return symbolCn;
            }

            public void setSymbolCn(String symbolCn) {
                this.symbolCn = symbolCn;
            }

            public String getSymbolEn() {
                return symbolEn;
            }

            public void setSymbolEn(String symbolEn) {
                this.symbolEn = symbolEn;
            }

            public int getCmd() {
                return cmd;
            }

            public void setCmd(int cmd) {
                this.cmd = cmd;
            }

            public double getVolume() {
                return volume;
            }

            public void setVolume(double volume) {
                this.volume = volume;
            }

            public double getOpenPrice() {
                return openPrice;
            }

            public void setOpenPrice(double openPrice) {
                this.openPrice = openPrice;
            }

            public double getClosePrice() {
                return closePrice;
            }

            public void setClosePrice(double closePrice) {
                this.closePrice = closePrice;
            }

            public double getMarket() {
                return market;
            }

            public void setMarket(double market) {
                this.market = market;
            }

            public int getLever() {
                return lever;
            }

            public void setLever(int lever) {
                this.lever = lever;
            }

            public double getProfit() {
                return profit;
            }

            public void setProfit(double profit) {
                this.profit = profit;
            }

            public String getTicket() {
                return ticket;
            }

            public void setTicket(String ticket) {
                this.ticket = ticket;
            }

            public int getContractSize() {
                return contractSize;
            }

            public void setContractSize(int contractSize) {
                this.contractSize = contractSize;
            }

            public boolean isProfitChange() {
                return profitChange;
            }

            public void setProfitChange(boolean profitChange) {
                this.profitChange = profitChange;
            }

            public boolean isProfitUSDPrex() {
                return profitUSDPrex;
            }

            public void setProfitUSDPrex(boolean profitUSDPrex) {
                this.profitUSDPrex = profitUSDPrex;
            }

            public double getBid() {
                return bid;
            }

            public void setBid(double bid) {
                this.bid = bid;
            }

            public double getAsk() {
                return ask;
            }

            public void setAsk(double ask) {
                this.ask = ask;
            }

            public double getOccupyAsset() {
                return occupyAsset;
            }

            public void setOccupyAsset(double occupyAsset) {
                this.occupyAsset = occupyAsset;
            }

            public double getMarginRate() {
                return marginRate;
            }

            public void setMarginRate(double marginRate) {
                this.marginRate = marginRate;
            }

            public double getMargin() {
                return margin;
            }

            public void setMargin(double margin) {
                this.margin = margin;
            }

            public double getTp() {
                return tp;
            }

            public void setTp(double tp) {
                this.tp = tp;
            }

            public double getSl() {
                return sl;
            }

            public void setSl(double sl) {
                this.sl = sl;
            }

            public String getOpenTime() {
                return openTime;
            }

            public void setOpenTime(String openTime) {
                this.openTime = openTime;
            }

            public double getSwaps() {
                return swaps;
            }

            public void setSwaps(double swaps) {
                this.swaps = swaps;
            }

            public double getCommission() {
                return commission;
            }

            public void setCommission(double commission) {
                this.commission = commission;
            }

            public int getStopsLevel() {
                return stopsLevel;
            }

            public void setStopsLevel(int stopsLevel) {
                this.stopsLevel = stopsLevel;
            }

            public int getMultiply() {
                return multiply;
            }

            public void setMultiply(int multiply) {
                this.multiply = multiply;
            }

            public String getProfitCurrency() {
                return profitCurrency;
            }

            public void setProfitCurrency(String profitCurrency) {
                this.profitCurrency = profitCurrency;
            }

            public double getProfitRate() {
                return profitRate;
            }

            public void setProfitRate(double profitRate) {
                this.profitRate = profitRate;
            }
        }
    }
}

